package sctu.edu.java.year2016.team06.chenqiang.day20160524.chapter7_3;

/**
 * Created by XQ on 2016/5/24.
 * 根据运行参数的个数决定循环打印变量i值的次数。
 */

import java.util.Scanner;

public class Chapter7_3 {
    static void Feel() {
        String i = new String("today is good day!");
        System.out.println(i);
    }

    public static void main(String[] args) {
        System.out.println("Please enter the number of times you run:");
        Scanner scan = new Scanner(System.in);
        int count = scan.nextInt();
        for (int j = 0; j < count; j++) {
            Feel();
        }
    }
}
